import java.util.Scanner;

public class DAY0517 {
    //密码强度
    public static void main(String[] args) {
        //接收一下
        Scanner sc =new Scanner(System.in);
        String s = sc.next();
        //判断密码是否合格
        if (s.length()<0||s.length()>300){
            return;
        }
        //判断长度
        int n = 0;
        if(s.length()<=4){
            n = n+5;
        } else if (s.length()<=7) {
            n+=10;
        }else {
            n+=25;
        }

        //判断密码中的元素
        int digit = 0;//数字
        int character = 0;//字符
        int MaxLetter = 0;//大写字母
        int MinLetter = 0;//小写字母
        //遍历密码
        for (int i = 0; i <s.length() ; i++) {
            char nums = s.charAt(i);
            //开始判断数字,字母
            if(nums >= '0'&& nums <= '9'){
                digit++;
            }else if(nums >= 'A'&&nums <= 'Z'){
                MaxLetter++;
            } else if (nums >= 'a'&&nums <= 'z') {
                MinLetter++;
            }else {
                character++;//字符
            }
        }
        //判断数字
        if (digit==0){
            n+=0;
        } else if (digit==1) {
            n+=10;
        }else {
            n+=20;
        }
        //判断字母   没有字母为0 全大写或全小写为10 大小混合为20
        if (MinLetter == s.length()-digit-character){
            n+=10;
        } else if (MaxLetter == s.length()-digit-character) {
            n+=10;
        } else if (MinLetter + MaxLetter== s.length()-digit-character) {
            n+=20;
        }

        //判断字符
        if (character==1) {
            n += 10;
        } else if (character>1) {
            n+=25;
        }

        //判断奖励
        if (digit!=0){
            if (MaxLetter!=0&&MinLetter!=0&&character!=0){
                n+=5;
            } else if ((MaxLetter!=0||MinLetter!=0)&&character!=0) {
                n+=3;
            }else {
                n+=2;
            }
        }
        if (n>=90){
            System.out.println("VERY_SECURE");
        } else if (n>=80) {
            System.out.println("SECURE");
        }else if (n>=70) {
            System.out.println("VERY_STRONG");
        }else if (n>=60) {
            System.out.println("STRONG");
        }else if (n>=50) {
            System.out.println("AVERAGE");
        }else if (n>=25) {
            System.out.println("WEAK");
        }else {
            System.out.println("VERY_WEAK");
        }
    }


    //井字棋
    public boolean checkWon(int[][] board) {
        // write code here
        //行
        int go = 0;
        //列
        int arrange = 0;
        //左对角
        int LeftDiagonal = 0;
        //右对角
        int RightDiagonal = 0;

        //开始判断
        for (int i = 0; i < board.length; i++) {
            for (int j = 0; j < board[i].length; j++) {
                go += board[i][j];

                arrange += board[j][i];

                if (i == j){
                    LeftDiagonal += board[i][j];
                }
                if (i+j == 2){
                    RightDiagonal += board[i][j];
                }
            }
            //判断是否成功
            if (LeftDiagonal == 3){
                return true;
            }
            if (RightDiagonal == 3){
                return true;
            }
            if (go == 3){
                return true;
            }
            if (arrange == 3){
                return true;
            }
        }
        return false;
    }
}
